package cn.wgx.safetyhelmet.handler.exception;

import lombok.Data;

@Data
public class BaseException extends Exception{

    private String msg;

    private int code;

    public BaseException(){
        this.msg = "system error";
        this.code = 001;
    }

    public BaseException(String msg){
        super(msg);
    }
    public BaseException(String msg, int code){
        this.msg = msg;
        this.code = code;
    }

}
